package com.audaque.springboot.foshanupload.web.mpgui.enums;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author helen
 * @since 2019/12/25
 */

@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public enum DataSourceEnum {

    DATA_PORTALS_TRANS(
            "t_behaviour_",
            "jdbc:mysql://10.128.6.72:3306/data_portals_trans?characterEncoding=utf-8&allowMultiQueries=true&useSSL=false",
            "root",
            "Root@1234!@#$",
            "com.mysql.cj.jdbc.Driver",
            IdType.ASSIGN_UUID,
            "com.dp.behaviour.app",
            8083),
    MPJ("",
            "jdbc:mysql://localhost:3306/dev_foshanupload_web?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useAffectedRows=true&useSSL=false",
            "root",
            "admin",
            "com.mysql.cj.jdbc.Driver",
            IdType.AUTO,
            "com.audaque.springboot.foshanupload.web.mpjdemo.mpgt",
            8082),

    RASP_CLOUD("",
            "jdbc:mysql://localhost:3306/rasp_cloud?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useAffectedRows=true&useSSL=false",
            "root",
            "admin",
            "com.mysql.cj.jdbc.Driver",
            IdType.AUTO,
            "com.audaque.springboot.foshanupload.web.mpguidemo.mpgt",
            8082),


    UTOUR_ADMIN_DEV("",
            "jdbc:mysql://192.168.0.127:3306/utour_admin_dev?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useAffectedRows=true&useSSL=false",
            "utour_app",
            "app_utour123",
            "com.mysql.cj.jdbc.Driver",
            IdType.AUTO,
            "vip.utour.admin",
            8082),

    UTOUR_USER_DEV("",
            "jdbc:mysql://192.168.0.127:3306/utour_user_dev?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useAffectedRows=true&useSSL=false",
            "utour_app",
            "app_utour123",
            "com.mysql.cj.jdbc.Driver",
            IdType.AUTO,
            "vip.utour.user",
            8082),

    MPJ_PRODUCT("",
                "jdbc:mysql://localhost:3306/product?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useAffectedRows=true&useSSL=false",
                "root",
                "admin",
                "com.mysql.cj.jdbc.Driver",
        IdType.AUTO,
            "com.audaque.springboot.foshanupload.web.productdemo",
                8082),


            ;


    private String suffix;
    private String jdbcUrl;
    private String userName;
    private String password;
    private String driverClassName;
    private IdType idType;
    private String basePackage;
    public Integer port;

}
